package command;

import pojo.User;

public abstract class CommandFactory {
	public static CommandFactory getFactory(User user) {
		if(user==null){
			return new SystemCommandFactory();
		}
		return new UserCommandFactory(user);
	}
	
	public abstract Command buildCommand(CommandCode cmd);
	
}
